import request from '@/utils/request'

// 查询进账名目列表
export function listBankIncomeName(query) {
  return request({
    url: '/supplier/bankIncomeName/list',
    method: 'get',
    params: query
  })
}

// 查询进账名目详细
export function getBankIncomeName(id) {
  return request({
    url: '/supplier/bankIncomeName/' + id,
    method: 'get'
  })
}

// 新增进账名目
export function addBankIncomeName(data) {
  return request({
    url: '/supplier/bankIncomeName',
    method: 'post',
    data: data
  })
}

// 修改进账名目
export function updateBankIncomeName(data) {
  return request({
    url: '/supplier/bankIncomeName',
    method: 'put',
    data: data
  })
}

// 删除进账名目
export function delBankIncomeName(id) {
  return request({
    url: '/supplier/bankIncomeName/' + id,
    method: 'delete'
  })
}

// 导出进账名目
export function exportBankIncomeName(query) {
  return request({
    url: '/supplier/bankIncomeName/export',
    method: 'get',
    params: query
  })
}